module BlogHelper
  def category_list
    value=''
    Category.find(:all).each do |category|
      link=link_to category.name+'('+category.blogs.size.to_s+')',
        :controller=>'blog', 
        :action=>'list_in_category', 
        :category_id=>category.id
      value+="<li>#{link}</li>"
    end
    return value
  end
end
